package cn.cleanarch.infra.idp.database.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@ToString
@EqualsAndHashCode
public class DBModel {

  @TableId(type = IdType.AUTO)
  protected Long id;
  
  @TableField("create_time")
  protected LocalDateTime createTime;
  
  @TableField("update_time")
  protected LocalDateTime updateTime;

}
